package 设计模式.facade;

public class HomTheaterFacede {
    private Popcorn popcorn;
    private Projector projector;
    private TheaterLight theaterLight;

    public HomTheaterFacede() {
        super();
        this.popcorn = popcorn.getInstance();
        this.projector = projector.getInstance();
        this.theaterLight = theaterLight.getInstance();
    }

    public void ready(){
        popcorn.on();
        projector.o11();
        theaterLight.o11();
    }

    public void play(){
        popcorn.stop();
        projector.stopppp();
        theaterLight.dim();
    }

    public void end(){
        popcorn.off();
        projector.off22();
        theaterLight.off22();
    }

}
